package com.petrooil.core.service;

import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;

public interface CrudService<T extends Serializable> {

    @Transactional
    T create(T t);

    @Transactional
    T get(Serializable id);

    @Transactional
    T update(T t);

    @Transactional
    void delete(T t);
}